package com.movitech.mobile.cz.base.purchase.mapper.ext;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.movitech.mobile.cz.base.purchase.entity.PStrategicPurchasePlan;
import com.movitech.mobile.cz.base.purchase.entity.ext.ExtPStrategicPurchasePlan;
import com.movitech.mobile.cz.base.purchase.entity.ext.StrategicPurchaseRequiredFindRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 战略采购规划 Mapper 接口
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-03-15
 */
@Component
@Mapper
public interface ExtPStrategicPurchasePlanMapper extends BaseMapper<PStrategicPurchasePlan> {

    List<ExtPStrategicPurchasePlan> getPStrategicPurchasePlanList(Map<String, Object> map);

    Integer getPStrategicPurchasePlanListCount(Map<String, Object> map);

    ExtPStrategicPurchasePlan getById(@Param("id") String id);

    ExtPStrategicPurchasePlan getByEntity(StrategicPurchaseRequiredFindRequest strategicPurchaseRequiredFindRequest);
}
